package com.questionnaires.exception;

/**
 * Exception thrown when the searched entity does not exist.
 *
 * @author ioana.ruca@gmail.com
 */
public class NotExistsException extends Exception {

  /**
   * Constructs a new exception with the specified detail message.
   *
   * @param message the detail message
   */
  public NotExistsException(String message) {
    super(message);
  }

  /**
   * Constructs a new exception with the specified detail message and cause.
   *
   * @param message the detail message
   * @param cause   the cause (which is saved for later retrieval by the
   *                {#getCause()} method). A null value is permitted,
   *                and indicates that the cause is nonexistent or unknown
   */
  public NotExistsException(String message, Throwable cause) {
    super(message, cause);
  }
}
